package com.kob.backend.service.impl.utils;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * <pre>{@code
 *
 * }</pre>
 *
 * @author Summerday
 * @date 2023/4/15
 */
public class CommonUtils {
    public static List<String> split(String s){
        if(isEmpty(s)) {
            return new ArrayList<>();
        }

        String[] ans = s.split(",");
        return Arrays.stream(ans).toList();
    }
    public static boolean isEmpty(String s) {
        return s == null || s.length() == 0;
    }

    public static void main(String[] args) {
        List<String> split = CommonUtils.split("");
        System.out.println(split);
    }
}
